|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgalcommand.io.xml.Element
algalcommand.io.xml.RootElement
public class RootElement
This class is used to represent the unnamed root of an XML tree.
Copyright Owner: Michigan State University, license number TEC2011-002101Prov
| Field Summary | |
|---|---|
static java.lang.String |
ROOT_TAGNAME
In case the tagname is needed for the root, this is it |
| Constructor Summary | |
|---|---|
RootElement()
default constructor |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] r)
Deprecated. For testing only |
protected static Element |
parseContent(Element root,
java.lang.String content)
Parses the content between the openning and closing tags of an element. |
static RootElement |
parseXML(java.lang.String xml)
Parses XML into a RootElement, which is an extension of the Element class. |
java.lang.String |
toString()
Rebuilds the XML document |
| Methods inherited from class algalcommand.io.xml.Element |
|---|
addAttribute, addChild, addChild, clone, containsChild, countChildren, getAllAttributeNames, getAttributeValue, getChild, getChildElementsByName, getTagName, hasAttribute, isEmpty, removeAllAttributes, removeAllChildren, removeAttribute, removeChild, removeChild, setAttribute, setTagName, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ROOT_TAGNAME
| Constructor Detail |
|---|
public RootElement()
| Method Detail |
|---|
public static RootElement parseXML(java.lang.String xml)
throws java.lang.IllegalArgumentException
xml - XML document as a String
java.lang.IllegalArgumentException - Thrown if there was a syntax error in
the XML.
protected static Element parseContent(Element root,
java.lang.String content)
throws java.lang.IllegalArgumentException
root - The root element who is the owner of this contentcontent - XML from between root's opening and closing
tags.
root, after parsing its content.
java.lang.IllegalArgumentException - Thrown if there was a syntax error in
the XML.public java.lang.String toString()
toString in class Elementpublic static void main(java.lang.String[] r)
r -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||